package com.teemo.dp.factorymethod.demo1;

import com.teemo.dp.factorymethod.demo1.computer.DesktopComputer;
import com.teemo.dp.factorymethod.demo1.computer.LaptopComputer;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) {
        DesktopComputer desktopComputer = new DesktopComputer();
        desktopComputer.setCpu("i7");
        desktopComputer.setMemory("16GB");
        desktopComputer.setHardDisk("1TB");
        desktopComputer.start();

        LaptopComputer laptopComputer = new LaptopComputer();
        laptopComputer.setCpu("i5");
        laptopComputer.setMemory("8GB");
        laptopComputer.setHardDisk("256GB");
    }
}
